package com.note.app.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 创建评论DTO
 */
@Data
@Schema(description = "创建评论请求")
public class CommentCreateDTO {
    
    @NotNull(message = "笔记ID不能为空")
    @Schema(description = "所属笔记ID", required = true, example = "1")
    private Long noteId;
    
    @NotBlank(message = "评论内容不能为空")
    @Schema(description = "评论内容", required = true, example = "这是一条评论")
    private String content;
} 